
import { AboutUs } from "../pages/AboutUs/AboutUs";
import { AdvantagePage } from "../pages/Advantage/Advantage";
import { ContactUsPage } from "../pages/ContactUs/ContactUs";
import { IncubatorPage } from "../pages/Incubator/Incubator";
import Index from "../pages/Index";
import { Main } from "../pages/Main/Main";
import  { NewsPage } from "../pages/News/News";
import { Research } from "../pages/Research/Research";
import { ResearchDetail } from "../pages/Research/ResearchDetail";
import { StockIndex } from "../pages/Stock/StockIndex";
import { StockSearch } from "../pages/Stock/StockSearch";
import { WatchListPage } from "../pages/Stock/WatchList/WatchList";
import { Subscribe } from "../pages/Subscribe/Subscribe";
import { Videos } from "../pages/Videos/Videos";





export const routesConfig = [
    {
        path: "/",
        component: Index,
        routes: [
            {
                path: "/",
                exact: true,
                component: Main
            },
            
            {
                path: "/advantage",
                component: AdvantagePage
            },
            {
                path: "/incubator",
                component: IncubatorPage
            },
            {
                path: "/news",
                component: NewsPage
            },
            {
                path: "/aboutUs",
                component: AboutUs
            },
            {
                path: "/contactUs",
                component: ContactUsPage
            },
            
            {
                path: "/research",
                component: Research,
                rule: 'researchReport'
            }, {
                path: "/researchDetail/:id",
                component: ResearchDetail
            }
            , {
                path: "/subscribe",
                component: Subscribe,
                auth: true
            },

            {
                path: "/videos",
                component: Videos
            },
            {
                path: "/watchList",
                component: WatchListPage,
            },
            {
                path: "/stockSearch",
                component: StockSearch,
            }
            ,
            {
                path: "/stockDetail/:symbol",
                component: StockIndex,
            }
        ]
    },
];



